<%@ page import="entity.Foods" %>
<%@ page import="entity.Food" %><%--
  Created by IntelliJ IDEA.
  User: Aaking-aline
  Date: 2022-05-20
  Time: 14:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
	<title>结果页</title>
</head>
<body>
	<%
		Foods json = (Foods)request.getAttribute("json");
		Food[] data = json.getData();
	%>


	<table>
		<tr>
			<td>1</td>
			<td>2</td>
			<td>3</td>
			<td>4</td>
			<td>5</td>
			<td>6</td>
		</tr>


		<% for (int i = 0;i < data.length;i++) {%>
			<tr>
				<td><%=data[i].getId()%></td>
				<td><%=data[i].getCollect_num()%></td>
				<td><img src="<%=data[i].getPic()%>"></td>
				<td><%=data[i].getFood_str()%></td>
				<td><%=data[i].getTitle()%></td>
				<td><%=data[i].getNum()%></td>
			</tr>
		<% } %>

	</table>



</body>
</html>
